VERSION 1.0 CLASS
BEGIN
  MultiUse = -1  'True
  Persistable = 0  'NotPersistable
  DataBindingBehavior = 0  'vbNone
  DataSourceBehavior  = 0  'vbNone
  MTSTransactionMode  = 0  'NotAnMTSObject
END
Attribute VB_Name = "clsFormType"
Attribute VB_GlobalNameSpace = False
Attribute VB_Creatable = True
Attribute VB_PredeclaredId = False
Attribute VB_Exposed = True
Option Explicit

Public Function GetFormType(ByVal XMLString As String) As String

Dim xmldoc                      As MSXML2.DOMDocument
Dim elDirective                 As MSXML2.IXMLDOMElement

On Error GoTo PROC_ERROR

If XMLString <> "" Then
    
    Set xmldoc = New MSXML2.DOMDocument
    xmldoc.loadXML (XMLString)

    Set elDirective = xmldoc.selectSingleNode("/KeyTax/Directive")
    GetFormType = elDirective.getAttribute("Form")

End If
    
PROC_EXIT:
  Exit Function

PROC_ERROR:
    GetFormType = ""
    Err.Raise Err.Number, _
              "clsFormType/GetFormType", _
               Err.Description
               
Resume PROC_EXIT
    
    
End Function
